<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="/struts-tags" prefix="s" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>menu page</title>
	<link href="<%=path %>/css/left.css" rel="stylesheet" type="text/css" />
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <link rel="stylesheet" href="/crm/dtree/dtree.css" type="text/css"></link>
   <script type="text/javascript" src="/crm/dtree/dtree.js"></script>
   <script type="text/javascript" src="/crm/js/jquery.js"></script>

<script type="text/javascript">
   //var $j = jQuery.noConflict(); 
		var d = new dTree("d");
		
		
		$(document).ready(function(){
			$.post(
				'/crm/ajaxns/roleRightAction',
				{},
				function(data){
				//var data = eval("("+dt+")");
				
				d.add("ROOT_MENU","-1","");
					
					$.each(data.rightsList,function(i,value){
						//alert(value.rightUrl);
						d.add(value.rightCode,value.rightParentCode,value.rightText,value.rightUrl,value.rightTip,'mainFrame','','','',0);
					});
					//document.writeln(d);
					$("#menuBottom").html(d.toString());
			});
		
		});
		



</script>
</HEAD>



<BODY  bgcolor="#0066cc" >


<div ID="menuBottom">

</div>

</BODY>

</html>
